/*
Name: Kabir Kang
File: cardtest3.c
Date: 7/13/13
Summary: tests village card by checking if cards and actions are added, as well as if the card is played.
*/
#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <string.h>
#include <stdio.h>

int main(int argc, char * argv[])
{
  int seed = 100;
  int numPlayers = 2;
  int preHandCount = 0;
  int preActions = 0;

  int k[10] = {adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};

  struct gameState g;
  initializeGame(numPlayers, k, seed, &g);

  preHandCount = g.handCount[0];
  preActions = g.numActions;

  cardEffect(village, 0, 0, 0, &g, 1, 0);

  if (g.handCount[0] == preHandCount)
	printf("village: PASS when cards added correctly.\n");
  else
    printf("village: FAIL when cards added incorrectly.\n");

  if (g.numActions == preActions + 2)
	printf("village: PASS when actions added correctly.\n");
  else
    printf("village: FAIL when actions added incorrectly.\n");

  if (g.playedCardCount == 1)
	printf("village: PASS when card played.\n");
  else
    printf("village: FAIL when card not played.\n");

  return 0;
}
